package com.sc.nft.entity.vo;

import cn.hutool.core.util.DesensitizedUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.SaasTaskTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class TaskRewardListVO {

    @ApiModelProperty("唯一id")
    private Long id;

    @ApiModelProperty("用户手机号")
    private String userTel;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("任务奖励id,用来获取奖励列表")
    private Long taskAwardId;

    @ApiModelProperty("任务icon")
    private String taskIcon;

    @ApiModelProperty("任务类型")
    private SaasTaskTypeEnum taskType;

    @ApiModelProperty("任务类型名称")
    private String taskTypeName;

    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fulfilTime;

    @ApiModelProperty("领取状态")
    private Boolean status;

    @ApiModelProperty("dao名字")
    private String daoName;


    public void setTaskType(SaasTaskTypeEnum taskTypeEnum) {
        this.taskType = taskTypeEnum;
        this.taskTypeName=taskTypeEnum.getDesc();
    }
}
